#define _CRT_SECURE_NO_WARNINGS 1


#include<queue>
#include<iostream>

using namespace std;

int main()
{
	int n = 0;
	cin >> n;
	priority_queue<int> pq;
	for (int i = 0; i < n; i++)
	{
		int temp = 0;
		cin >> temp;
		pq.push(temp);
	}
	for (int i = 0; i < 10; i++)
	{
		cout << pq.top() << ' ';
		pq.pop();
	}
	cout << endl;

	return 0;
}